#include "widget.h"
#include "ui_widget.h"

#include <QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPixmap pixmap(":/csdn.png");
    pixmap = pixmap.scaled(50, 50);
    QCursor cursor(pixmap, 10, 10);
    this->setCursor(cursor);

//    QPushButton *button = new QPushButton(this);
//    button->setText("hello");
}

Widget::~Widget()
{
    delete ui;
}

